package com.apps.sworld.enums;

/**
 * 时间单位,用于按时间查询中
 */
public enum TimeUnit {
    YEAR("%Y","年"),
    MONTH("%Y%m","月"),
    DAY("%Y%m%d","日"),
    HOUR("%Y%m%d%H","小时");

    private String ForMat;

    private String desc;

    TimeUnit(String forMat, String desc) {
        ForMat = forMat;
        this.desc = desc;
    }

    public String getForMat() {
        return ForMat;
    }

    public void setForMat(String forMat) {
        ForMat = forMat;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
